Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var e = require("../@babel/runtime/helpers/classCallCheck"), r = require("../@babel/runtime/helpers/createClass"), t = require("../@babel/runtime/helpers/inherits"), s = require("../@babel/runtime/helpers/createSuper"), u = function(u) {
    t(i, u);
    var d = s(i);
    function i() {
        return e(this, i), d.apply(this, arguments);
    }
    return r(i, [ {
        key: "addressList",
        value: function() {
            return this.request({
                url: "/ums/receiveAddress/list",
                data: {
                    pageNum: 0,
                    pageSize: 100
                },
                method: "post"
            });
        }
    }, {
        key: "editAddress",
        value: function(e) {
            return this.request({
                url: "/ums/receiveAddress/addUpdate",
                data: e,
                method: "post"
            });
        }
    }, {
        key: "addressDetails",
        value: function(e) {
            return this.request({
                url: "/ums/receiveAddress/detail?addressId=".concat(e)
            });
        }
    }, {
        key: "deleteAddress",
        value: function(e) {
            return this.request({
                url: "/ums/receiveAddress/delete?addressId=".concat(e)
            });
        }
    }, {
        key: "getDefaultAddress",
        value: function() {
            return this.request({
                url: "/ums/receiveAddress/getDefaultAddress"
            });
        }
    } ]), i;
}(require("./_http").HTTP);

exports.default = u;